package com.ruoyi.cms.service;

import cn.hutool.core.lang.tree.Tree;
import com.ruoyi.cms.domain.Category;
import com.ruoyi.cms.exception.CmsException;
import com.ruoyi.common.core.domain.entity.SysMenu;

import java.util.List;
import java.util.Map;

public interface CategoryService {

	void save(Category category);

	List<Category> queryListByPage(Map<String,Object> params);

    List<Category> getAllList();

	Category selectById(String id);

	List<Category> selectByParentId(String id);

	int update(Category category);

	int delete(String id) throws CmsException;

	Category queryCategoryByCode(String code);

	void updateSort(List<Category> list);

	List<Category> getTreeList(Map<String, Object> params);

    List<Category> getTreeList();

	List<Category> queryListByCode(Map<String, Object> entity);

	List<Category> queryAll();

    List<Tree<String>> buildMenuTreeSelect(List< Category > categories);

}
